package concurrent;

import java.util.concurrent.locks.ReentrantLock;

public class ReentrantLockDemo {

    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        try {
            if(lock.tryLock()){

            }
        } finally {
            lock.unlock();
        }

    }
}
